import request from '@/utils/request'
export function list(page,size){
	return request({
		url: '/cabinet/list',
		method: 'post',
		params:{
			page: page,
			size: size
		}
	})
}

export function update(data){
	return request({
		url: '/cabinet/update',
		method: 'post',
		data
	})
}

export function del(data){
	return request({
		url: '/cabinet/delete',
		method: 'post',
		data
	})
}

export function search(idcName,pageSize){
	return request({
		url: '/cabinet/search',
		method:'post',
		params:{
			idcName:idcName,
			size: pageSize
		}
	})
}

export function listCabinet(){
	return request({
		url: '/cabinet/listall',
		method:'post'
	})
}

export function listCabinetByIdc(idcId){
	return request({
		url: '/cabinet/listall',
		method:'post',
		params: {
			idcId: idcId
		}
	})
}